/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_boolean_ } from '../models/BaseResponse_boolean_';
import type { BaseResponse_ExamUserVO_ } from '../models/BaseResponse_ExamUserVO_';
import type { BaseResponse_long_ } from '../models/BaseResponse_long_';
import type { BaseResponse_Page_ExamUser_ } from '../models/BaseResponse_Page_ExamUser_';
import type { BaseResponse_Page_ExamUserVO_ } from '../models/BaseResponse_Page_ExamUserVO_';
import type { DeleteRequest } from '../models/DeleteRequest';
import type { ExamUserAddRequest } from '../models/ExamUserAddRequest';
import type { ExamUserEditRequest } from '../models/ExamUserEditRequest';
import type { ExamUserQueryRequest } from '../models/ExamUserQueryRequest';
import type { ExamUserUpdateRequest } from '../models/ExamUserUpdateRequest';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class ExamUserControllerService {

    /**
     * addExamUser
     * @param examUserAddRequest examUserAddRequest
     * @returns BaseResponse_long_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static addExamUserUsingPost(
examUserAddRequest: ExamUserAddRequest,
): CancelablePromise<BaseResponse_long_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/exam_user/add',
            body: examUserAddRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * deleteExamUser
     * @param deleteRequest deleteRequest
     * @returns BaseResponse_boolean_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static deleteExamUserUsingPost(
deleteRequest: DeleteRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/exam_user/delete',
            body: deleteRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * editExamUser
     * @param examUserEditRequest examUserEditRequest
     * @returns BaseResponse_boolean_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static editExamUserUsingPost(
examUserEditRequest: ExamUserEditRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/exam_user/edit',
            body: examUserEditRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * getExamUserVOById
     * @param id id
     * @returns BaseResponse_ExamUserVO_ OK
     * @throws ApiError
     */
    public static getExamUserVoByIdUsingGet(
id?: number,
): CancelablePromise<BaseResponse_ExamUserVO_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/api/exam_user/get/vo',
            query: {
                'id': id,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * listExamUserByPage
     * @param examUserQueryRequest examUserQueryRequest
     * @returns BaseResponse_Page_ExamUser_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static listExamUserByPageUsingPost(
examUserQueryRequest: ExamUserQueryRequest,
): CancelablePromise<BaseResponse_Page_ExamUser_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/exam_user/list/page',
            body: examUserQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * listExamUserVOByPage
     * @param examUserQueryRequest examUserQueryRequest
     * @returns BaseResponse_Page_ExamUserVO_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static listExamUserVoByPageUsingPost(
examUserQueryRequest: ExamUserQueryRequest,
): CancelablePromise<BaseResponse_Page_ExamUserVO_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/exam_user/list/page/vo',
            body: examUserQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * listMyExamUserVOByPage
     * @param examUserQueryRequest examUserQueryRequest
     * @returns BaseResponse_Page_ExamUserVO_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static listMyExamUserVoByPageUsingPost(
examUserQueryRequest: ExamUserQueryRequest,
): CancelablePromise<BaseResponse_Page_ExamUserVO_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/exam_user/my/list/page/vo',
            body: examUserQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * searchExamUserVOByPage
     * @param examUserQueryRequest examUserQueryRequest
     * @returns BaseResponse_Page_ExamUserVO_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static searchExamUserVoByPageUsingPost(
examUserQueryRequest: ExamUserQueryRequest,
): CancelablePromise<BaseResponse_Page_ExamUserVO_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/exam_user/search/page/vo',
            body: examUserQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * updateExamUser
     * @param examUserUpdateRequest examUserUpdateRequest
     * @returns BaseResponse_boolean_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static updateExamUserUsingPost(
examUserUpdateRequest: ExamUserUpdateRequest,
): CancelablePromise<BaseResponse_boolean_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/exam_user/update',
            body: examUserUpdateRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

}
